/**
 * 段落
 */
function sParagraph(target){
    if(this.initialize) return;

    var thiz = target ? target : this;
    
    this.style = {
        lineHeight: 1.5,
        textIndent: 0,
        leftWholeIndent: 0,
        rightWholeIndent: 0,
        textAlign: "left",
        ...thiz.style
    };

    sElement.call(this, "sParagraph");
}

/**
 * 将sElement原型上的方法和属性赋值给sParagraph原型
 */
for(let i in sElement.prototype){
    sParagraph.prototype[i] = sElement.prototype[i];
}

/**
 * 克隆方法
 */
sParagraph.prototype.clone = function(){
    let paragraph = new sParagraph(this);
    return paragraph;
}